import createRequest from '../utils/request'
//封装请求方法
///login
 
export function loginRequest(data) {
  //application/json
  return createRequest({
    url: '/jw/bingjw',
    method: 'POST',
    data,
    needLogin: false  //不需要登录也能请求
  })
}

//获取有效成绩接口
export function getScoreListRequest(data) {
  return createRequest({
    url: '/jw/scores',
    method: 'POST',
    data
  })
}

//课表
export function getCourseListRequest(data) {
  return createRequest({
    url: '/jw/getstucourse',
    method: 'POST',
    data
  })
}

// 校内资讯接口
export function getSchoolListRequest(data) {
  return createRequest({
    url: '/jw/news/',
    method: 'GET',
    data
  })
}


//其它资讯
export function getOtherNewsListRequest(data) {
  return createRequest({
    url: '/jw/news/',
    method: 'GET',
    data
  })
}

